package com.apimarket.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @Description:
 * @Author ZXR
 * @Date 2021/7/20 10:34
 * @Version 1.0
 */
@AllArgsConstructor
@Getter
@NoArgsConstructor
public enum SecurityEnum {
    USER_NAME_IS_NUM(400,"用户名不能为空"),
    USER_IS_NULL(400,"用户不存在"),
    /* 用户错误 */
    USER_NOT_LOGIN(400, "用户未登录"),
    USER_ACCOUNT_EXPIRED(400, "账号已过期"),
    USER_CREDENTIALS_ERROR(400, "密码错误"),
    USER_CREDENTIALS_EXPIRED(400, "密码过期"),
    USER_ACCOUNT_DISABLE(400, "账号不可用"),
    USER_ACCOUNT_LOCKED(400, "账号被锁定"),
    USER_ACCOUNT_NOT_EXIST(400, "账号不存在"),
    USER_ACCOUNT_ALREADY_EXIST(400, "账号已存在"),
    USER_ACCOUNT_USE_BY_OTHERS(400, "账号下线"),
    USER_HAS_NO_PERMISSION(400,"用户没有权限"),
    NO_PERMISSION(400,"没有权限"),
    /* 默认失败 */
    COMMON_FAIL(400, "失败");
    private Integer code;
    private String msg;
}
